<h1>Editing course_material</h1>

<% form_for(@course_material) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :document_url %><br />
    <%= f.text_field :document_url %>
  </p>
  <p>
    <%= f.label :time_posted %><br />
    <%= f.datetime_select :time_posted %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @course_material %> |
<%= link_to 'Back', course_materials_path %>
